import Vue from 'vue'
import Router from 'vue-router'

import Home from './views/Home.vue'
import Learnmore from './views/Learnmore.vue'
import Online from './views/Online.vue'
import Uploads from './views/online/Uploads.vue'
import Result from './views/online/Result.vue'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/learnmore',
      name: 'learnmore',
      component: Learnmore
    },
    {
      path: '/online',
      component: Online,
      children: [
        {
          path: 'uploads',
          component: Uploads
        },
        {
          path: 'result',
          component: Result
        }
      ]
    }
  ]
})

export default router
